package com.lichuang.dedao.listenBooks.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 听书
 * </p>
 *
 * @author kangkang
 * @since 2019-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("listen_books")
@ApiModel(value = "ListenBooks对象", description = "听书")
public class ListenBooks implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "听书id")
    @TableId(value = "listen_books_id", type = IdType.AUTO)
    private Integer listenBooksId;

    @ApiModelProperty(value = "听书的主图片")
    private String mainImg;

    @ApiModelProperty(value = "听书的名字")
    private String bookname;

    @ApiModelProperty(value = "听书的子标题")
    private String subititle;

    @ApiModelProperty(value = "听书的作者")
    private String author;
    @ApiModelProperty(value = "听书价格")
    private BigDecimal price;

    @ApiModelProperty(value = "听书音频简介")
    private String audioProfile;

    @ApiModelProperty(value = "听书音频地址")
    private String audioAddress;

    @ApiModelProperty(value = "是否有电子书。0：为没有，1：为有电子书")
    @TableField("E_book")
    private Integer eBook;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "听书的创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
